package com.service;

import com.dao.developerDao;
import com.entity.appCategory;
import com.entity.appInfo;
import com.entity.appVersion;
import com.entity.devUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class developerServiceImpl implements developerService {
    @Autowired
    developerDao developerDao;

    @Override
    public devUser devLogin(String devCode, String devPassword) {
        return developerDao.devLogin(devCode, devPassword);
    }

    @Override
    public int devRegister(devUser devUser) {
        return developerDao.devRegister(devUser);
    }

    @Override
    public int judgeDevCode(String devCode) {
        return developerDao.judgeDevCode(devCode);
    }

    @Override
    public List<appInfo> devShow(String softwareName, String status, String flatForm, Integer categoryLevel1, Integer categoryLevel2, Integer categoryLevel3) {
        return developerDao.devShow(softwareName, status, flatForm, categoryLevel1, categoryLevel2, categoryLevel3);
    }

    @Override
    public List<appCategory> findSort(Integer id) {
        return developerDao.findSort(id);
    }

    @Override
    public int addAppInfor(appInfo appInfo) {
        return developerDao.addAppInfor(appInfo);
    }

    @Override
    public int judgeAPKName(String APKName) {
        return developerDao.judgeAPKName(APKName);
    }

    @Override
    public appInfo modifyFindApp(Integer id) {
        return developerDao.modifyFindApp(id);
    }

    @Override
    public List<appInfo> findFlatForm(Integer flatformId) {
        return developerDao.findFlatForm(flatformId);
    }

    @Override
    public List<appCategory> findCategoryName3(Integer id) {
        return developerDao.findCategoryName3(id);
    }

    @Override
    public int appModify(appInfo appInfo) {
        return developerDao.appModify(appInfo);
    }

    @Override
    public List<appVersion> appVersionShow(Integer appId) {
        return developerDao.appVersionShow(appId);
    }

    @Override
    public int addAppVersion(appVersion appVersion) {
        return developerDao.addAppVersion(appVersion);
    }

    @Override
    public int modifyVersionId(Integer appId) {
        return developerDao.modifyVersionId(appId);
    }

    @Override
    public appVersion findAppVersion(Integer appId) {
        return developerDao.findAppVersion(appId);
    }

    @Override
    public int modifyAppVersion(appVersion appVersion) {
        return developerDao.modifyAppVersion(appVersion);
    }

    @Override
    public int deleteApp(Integer id) {
        return developerDao.deleteApp(id);
    }

    @Override
    public int putOnApp(Integer id) {
        return developerDao.putOnApp(id);
    }

    @Override
    public int offOnApp(Integer id) {
        return developerDao.offOnApp(id);
    }
}
